package com.five.admin.service.impl;

import com.five.admin.service.WalletRecordService;
import com.five.admin.dao.WalletRecordMapper;
import com.five.entity.Orders;
import com.five.entity.WalletRecords;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: star
 * @Date: 2021-05-21 14:49
 *
 * 钱包记录 service层实现类
 */
@Service
public class WalletRecordServiceImpl implements WalletRecordService {

    @Autowired
    private WalletRecordMapper walletRecordMapper;

    @Override
    public List<WalletRecords> fuzzyQueryByWalletCode(String walletCode, int page) {
        return walletRecordMapper.fuzzyQueryByWalletCode(walletCode,(page-1)*8);
    }

    @Override
    public int countWalletRecord(String walletCode) {
        return walletRecordMapper.countWalletRecord(walletCode);
    }
}
